package com.foryou.wechat.controller;

import com.foryou.wechat.service.IndexBackService;
import com.foryou.wechat.utils.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v/index/back")
public class IndexBackController {

    private final IndexBackService indexBackService;

    public IndexBackController(IndexBackService indexBackService) {
        this.indexBackService = indexBackService;
    }

    @GetMapping()
    public Response getIndexList() {
        return indexBackService.getIndexBackList();
    }
}
